/**
 * @file CommonServer.h
 * @author huangxiaozhu (xiaozhuhuang2014@163.com)
 * @brief  服务端的纯虚接口
 * @version 1.0.0
 * @date 2024-02-26
 * 
 * @copyright Copyright (c) 2024
 * 
 */



#pragma once 

#include <memory>

class CommonServer;
using CommonServerPtr = std::shared_ptr<CommonServer>;


/**
 * @brief 驱动板作为服务端，CommonServer作为服务的基类，可以是tcp通讯服务，或是其他通讯服务。
 */
class CommonServer
{
public:
    CommonServer() = default;
    ~CommonServer() = default;

    virtual void Start() = 0;
    virtual void Stop() = 0;
};

